package cn.iocoder.yudao.adminserver.modules.fi.controller.coreTask.vo;

import lombok.*;
import java.util.*;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 项目反馈 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class CoreTaskBaseVO {

    @ApiModelProperty(value = "养护名称", required = true)
    @NotNull(message = "养护名称不能为空")
    private String name;

    @ApiModelProperty(value = "养护护类型", required = true)
    @NotNull(message = "养护护类型不能为空")
    private Integer maintainId;

    @ApiModelProperty(value = "实施者", required = true)
    @NotNull(message = "实施者不能为空")
    private Long doTaskUid;

    @ApiModelProperty(value = "项目id", required = true)
    @NotNull(message = "项目id不能为空")
    private Long projectId;

    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不能为空")
    private Integer isFinish;

    @ApiModelProperty(value = "当前地址", required = true)
    @NotNull(message = "当前地址不能为空")
    private String currentLocation;

    @ApiModelProperty(value = "完成时间", required = true)
    @NotNull(message = "完成时间不能为空")
    private String finishDate;

    @ApiModelProperty(value = "任务类型", required = true)
    @NotNull(message = "任务类型不能为空")
    private Integer taskType;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date endTime;

    @ApiModelProperty(value = "执行时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date doTime;

}
